home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / graphics / aim_xtra.arc / CORSHA.AIM < prev    next >
Text File  |  1988-08-17  |  538b  |  19 lines

  1. * example of shading correction by subtraction of
  2. * the background.
  3. * background is calculated by maxmin filtering
  4. *
  5. ton                 * timer on
  6. readf SCHEME.IM,A   * read image
  7. * thresholding is not possible
  8. * with uncorrected image:
  9. thresh A,B,1        
  10. * calculate the background by
  11. * maxmin filtering
  12. lmax A,B,31         * max filter
  13. lmin B,C,31         * min filter
  14. sub A,C,255         * subtract background
  15. * obtain from the corrected image
  16. * a binary image by thresholding
  17. thresh C,B,1,220    * threshold
  18. toff
  19.